import request from '../utils/request'
import {responseList, responseObject, Task, TaskCount, TranslatedTask} from "../types/entity.ts";

export namespace userApi {
    export function heat(params:any) {
        return request.post<any>(`/decoding-ark/${params}/heat`,);
    }
    export function login(params:any) {
        return request.post<any>("/decoding-ark/user/log-in",params);
    }
    export function release(params:any) {
        return request.post<any>("/decoding-ark/task/release",params);
    }
    export function diss(params:any,obj:any) {
        return request.post<any>(`/decoding-ark/${params}/like-or-diss`,obj);
    }
    export function search(params:any) {
        return request.get<any>(`/decoding-ark/curl-translation-list?cUrl=${params}`,);
    }
    export function getDetail(params:any) {
        return request.get<any>(`/decoding-ark/${params}/translation-detail`,);
    }
    export function getTask(params:any) {
        return request.get<any>(`/decoding-ark/${params}/task-info`,);
    }


}
